package cn.ichiva.mq.test;

import cn.ichiva.annotation.Log;
import cn.ichiva.annotation.MQ;
import cn.ichiva.annotation.MQListener;

/**
 * @Description
 * @auther @author Qp Group
 * @create 2020-03-30 10:28
 */
@MQ
public class RocketMQListenerDemo {

    @MQListener(tag = "A")
    public void testA(A object){
        System.out.println(object);
    }

    @MQListener(tag = "B")
    public void testB(B object){
        System.out.println(object);
    }


    public static class A{
        @Override
        public String toString() {
            return "A";
        }
    }

    public static class B{

        @Override
        public String toString() {
            return "B";
        }
    }
}
